package com.wuseguang.springcloud.service.impl;


import com.wuseguang.springcloud.service.JurisdictionClientService;
import com.wuseguang.springcloud.service.QuartzClientService;
import com.wuseguang.springcloud.util.Result;
import feign.hystrix.FallbackFactory;
import org.springframework.stereotype.Component;

@Component
public class QuartzClientServiceFallbackFactory  implements FallbackFactory<QuartzClientService> {


    @Override
    public QuartzClientService create(Throwable throwable) {

        return new QuartzClientService() {

            @Override
            public Result findTeacherSubscription() {
                return null;
            }

            @Override
            public Result scheduleSubscription(Integer state) {
                return null;
            }

            @Override
            public Result openTask() {
                return null;
            }

            @Override
            public Result saveAttend() {
                return null;
            }
        };
    }
}
